package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;
import com.ym.medical.domain.entity.CommentRecordEntity;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 评价记录对象 comment_record
 *
 * @author ym
 * @date 2020-08-20
 */
@ApiModel("评价记录-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentRecordUpdateParam extends BeanCovert<CommentRecordEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("订单id")
    @NotNull(message = "订单id不能为空", groups = {Add.class, Update.class})
    private Long orderId;

    @ApiModelProperty("评价内容")
    @Size(max = 200, message = "评价内容长度超过{max}", groups = {Add.class, Update.class})
    private String commentBody;

    @ApiModelProperty("评价星数")
    private Integer commentStarnumber;

    @ApiModelProperty("评价人")
    private Long commentPerson;

    @ApiModelProperty("被评价人")
    private Long commentAppperson;

}
